package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.GoodsBrandProperties;
@Mapper
public interface GoodsBrandPropertiesMapper {
    int deleteByPrimaryKey(Long id);

//    int insert(GoodsBrandProperties record);

    int insertSelective(GoodsBrandProperties record);

    GoodsBrandProperties selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsBrandProperties record);

//    int updateByPrimaryKey(GoodsBrandProperties record);

 // ################ 以上为mybatis generator生成 #####################
    
	/**
	 *
	 * @param goodsId
	 * @param brandPropertiesTemplateId
	 * @param propertiesName
	 * @return
	 */
	List<GoodsBrandProperties> selectBySelective(
			@Param("goodsId")Long goodsId, 
			@Param("brandPropertiesTemplateId")Integer brandPropertiesTemplateId, 
			@Param("propertiesName")String propertiesName);
    
	int deleteById(@Param("id")Long...id);

	/**
	 *
	 * @param properties
	 * @return
	 */
	int insertMany(@Param("properties")List<GoodsBrandProperties> properties);
    
}